package com.nhutcm.trackingthief.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.nhutcm.trackingthief.ConfigScreen;

public class SecretCodeReceiver extends BroadcastReceiver {

	public static final String TAG = "com.nhutcm.trackingthief.receiver.SecretCodeReceiver";

	@Override
	public void onReceive(Context context, Intent intent) {
		String action = intent.getAction();
		if (action.equals("android.provider.Telephony.SECRET_CODE")) {
			Intent i = new Intent(context, ConfigScreen.class);
			i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(i);

		}
	}

}
